public class deploymentTriggerProcess {
/*


*/
    public deploymentTriggerProcess() {  
    }
    // do the job
    public static void processDeployment(list <string> deployids) {
        // local vars
        list <Deployment_Component__c> dc;
        list <Component__c> compl = new list <Component__c>();
        //loop through the deploy ids get the components
        for(string did:deployids) {
            dc = [SELECT Component__c FROM Deployment_Component__c WHERE Deployment__c =:did];                     
            for(Deployment_Component__c dcr:dc) {
               //update the component records list
               Component__c C = new Component__c(Id = dcr.Component__c, status__c = 'Deployed Production');
               compl.add(C);
            }
        }
        //update the db with the updated components list
        update(compl);
    }
    //Test methods
    static testMethod  void deploymentTriggerProcessTest1() {
      //start test
      //test.starttest();
       project__c proj=[select id from project__c limit 1];
       Component__c cpt = new Component__c(name='testmethod', project__c=proj.id); 
       insert (cpt);
       Deployment__c dp = new Deployment__c(project__c=proj.id); 
       insert (dp);
       Deployment_Component__c dc = new Deployment_Component__c(Deployment__c=dp.id,Component__c=cpt .id);
       insert (dc);
       Deployment__c dpp = new Deployment__c(id=dp.id,Status__c='Deployed Production' );
       
      

         deploymentTriggerProcess Ctlr = new deploymentTriggerProcess();
        // methods to test and vars to set
            update(dpp);
        //Ctlr.go();  

       // end the test
     //test.stoptest();  
   } 

}